﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebSocketServer.Models
{
    public class DatabaseQueryResult
    {
        public bool Success { get; set; }
        public string StatusText { get; set; }
        public object Value { get; set; }


        public DatabaseQueryResult(bool success, string statusText, object returnValue=null)
        {
            this.Success = success;
            this.StatusText = statusText;
            this.Value = returnValue;
        }
        //public DatabaseQueryResult(bool success, string statusText)
        //{
        //    this.Success = success;
        //    this.StatusText = statusText;
        //}
        //public DatabaseQueryResult(bool success, object returnValue)
        //{
        //    this.Success = success;
        //    this.ReturnValue = returnValue;
        //}
        public DatabaseQueryResult() { }
    }
}
